﻿using System;

struct Player : IComparable<Player>
{
    private string name;
    private int result;

    public Player(string name, int result)
    {
        this.name = name;
        this.result = result;
    }

    public string Name
    {
        set
        {
            this.name = value;
        }
        get
        {
            return this.name;
        }
    }

    public int Result
    {
        set
        {
            this.result = value;
        }
        get
        {
            return this.result;
        }
    }

    public int CompareTo(Player other)
    {
        return -1*this.Result.CompareTo(other.Result); //FOR DESCENDING ORDER -1* LOL
    }
}